//
//  GRUserBasisInfo.h
//  YC_GRice
//
//  Created by LiuFeng on 2018/7/12.
//  Copyright © 2018年 YeCai. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GRBasisKeyModel.h"

static NSString *const LoginToExitNotificationName = @"LoginToExit";

@interface GRUserBasisInfo : NSObject


/**
 用户基础秘钥 单例

 @return <#return value description#>
 */
+ (instancetype)shareBasis;




/**
 获取当前Model

 @return <#return value description#>
 */
+ (GRBasisKeyModel *)UserBasis;



/**
 用户id

 @return <#return value description#>
 */
+ (NSString *)BasisID;



/**
 用户身份秘钥

 @return <#return value description#>
 */
+ (NSString *)Token;



/**
 七牛上传秘钥

 @return <#return value description#>
 */
+ (NSString *)UploadToken;


/**
 登录状态

 @return <#return value description#>
 */
+ (BOOL)isLogin;

+(BOOL)isAuth;


+(CGFloat)recommendUser;

+(CGFloat)recommendStore;



/**
 登录
 */
- (void)doLogin;


/**
 退出登录
 */
- (void)LoginOut;


/**
 秘钥备份

 @param basisKey <#basisKey description#>
 */
- (void)saveBasisKey:(GRBasisKeyModel *)basisKey;


@end
